package com.apanal.qlife.org.model;

import java.util.Date;
import java.util.List;

import com.apanal.qlife.sys.model.File;


public class Organization {
	
	/**
	 * 机构表主键ID
	 */
    private Long orgId;

    /**
	 * 机构类型 1、平台 2、渠道 3、物业
	 */
    private Integer orgType;

    /**
	 * 
	 */
    private String orgName;

    private String comRegName;

    private Long orgPId;
    
    private String orgPIds;

    private Long provinceId;

    private Long cityId;

    private Long areaId;

    private String address;

    private String corpName;

    private String corpIdCardNumber;

    private String corpIdCareEndDate;

    private String businessLicenseNumber;

    private String businessLicenseEndDate;

    private String orgNumber;

    private String orgEndDate;

    private String taxRegCertifNumber;

    private String taxRegCertifEndDate;

    private String serviceHotline;

    private Integer orgIcon;

    private String contactName;

    private String contactNumber;

    private Integer auditStatus;
    
    /**
     * 审批状态
     */
    private String auditContent;
    
    /**
     * 状态名称
     */
    private String content;

    private Integer normal;

    private Integer status;

    private Date insertDate;

    private Long insertBy;

    private Date lastUpdateDate;

    private Long lastUpdateBy;
    
    /**
     * 开发渠道数量
     */
    private String orgCount;
    
    /**
     * 平台用户数量
     */
    private String useCount;
    
    /**
     * 开发社区数量
     */
    private String comCount;
    
    /**
     * 房屋数量
     */
    private String houCount;
    
    /**
     * 住户数量
     */
    private String tenCount;
    
    private Long trenchId;
    
    private Long tenementId;
    
    private String provinceName;
    
    private String cityName;
    
    private String areaName;
    
    private String filelist;
    
    private List<File> fileLists;
    
	private String audtPerson;
	
	private Integer agreeStatus;
	
	private Long  copyOrgId;
    public Long getCopyOrgId() {
		return copyOrgId;
	}

	public void setCopyOrgId(Long copyOrgId) {
		this.copyOrgId = copyOrgId;
	}

	public Integer getAgreeStatus() {
		return agreeStatus;
	}

	public void setAgreeStatus(Integer agreeStatus) {
		this.agreeStatus = agreeStatus;
	}
  
    public String getAudtPerson() {
		return audtPerson;
	}

	public void setAudtPerson(String audtPerson) {
		this.audtPerson = audtPerson;
	}
    
    public String getOrgids() {
		return orgids;
	}

	public void setOrgids(String orgids) {
		this.orgids = orgids;
	}

	private String orgids; 
    public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	private String comName;
    /**
     * 平台名称
     */
    private String platformName;
    /**
     * 渠道名称
     */
    private String trenchName;
    
    private Contract contract;
    
    
    //userName  提交人
    private String userName;
    
    //平台名称
    
    private String ptName;
    
     //审核意见
    private String audAdvices;
	public String getAudAdvices() {
		return audAdvices;
	}

	public void setAudAdvices(String audAdvices) {
		this.audAdvices = audAdvices;
	}

	public String getPtName() {
		return ptName;
	}

	public void setPtName(String ptName) {
		this.ptName = ptName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	

	/**
	 * @return the orgId
	 */
	public Long getOrgId() {
		return orgId;
	}

	/**
	 * @param orgId the orgId to set
	 */
	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	/**
	 * @return the orgType
	 */
	public Integer getOrgType() {
		return orgType;
	}

	/**
	 * @param orgType the orgType to set
	 */
	public void setOrgType(Integer orgType) {
		this.orgType = orgType;
	}

	/**
	 * @return the orgName
	 */
	public String getOrgName() {
		return orgName;
	}

	/**
	 * @param orgName the orgName to set
	 */
	public void setOrgName(String orgName) {
		this.orgName = orgName == null ? null : orgName.trim();
	}

	/**
	 * @return the comRegName
	 */
	public String getComRegName() {
		return comRegName;
	}

	/**
	 * @param comRegName the comRegName to set
	 */
	public void setComRegName(String comRegName) {
		this.comRegName = comRegName;
	}

	/**
	 * @return the orgPId
	 */
	public Long getOrgPId() {
		return orgPId;
	}

	/**
	 * @param orgPId the orgPId to set
	 */
	public void setOrgPId(Long orgPId) {
		this.orgPId = orgPId;
	}

	/**
	 * @return the orgPIds
	 */
	public String getOrgPIds() {
		return orgPIds;
	}

	/**
	 * @param orgPIds the orgPIds to set
	 */
	public void setOrgPIds(String orgPIds) {
		this.orgPIds = orgPIds == null ? null :orgPIds.trim();
	}

	/**
	 * @return the provinceId
	 */
	public Long getProvinceId() {
		return provinceId;
	}

	/**
	 * @param provinceId the provinceId to set
	 */
	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}

	/**
	 * @return the cityId
	 */
	public Long getCityId() {
		return cityId;
	}

	/**
	 * @param cityId the cityId to set
	 */
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}

	/**
	 * @return the areaId
	 */
	public Long getAreaId() {
		return areaId;
	}

	/**
	 * @param areaId the areaId to set
	 */
	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the corpName
	 */
	public String getCorpName() {
		return corpName;
	}

	/**
	 * @param corpName the corpName to set
	 */
	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	/**
	 * @return the corpIdCardNumber
	 */
	public String getCorpIdCardNumber() {
		return corpIdCardNumber;
	}

	/**
	 * @param corpIdCardNumber the corpIdCardNumber to set
	 */
	public void setCorpIdCardNumber(String corpIdCardNumber) {
		this.corpIdCardNumber = corpIdCardNumber;
	}

	/**
	 * @return the corpIdCareEndDate
	 */
	public String getCorpIdCareEndDate() {
		return corpIdCareEndDate;
	}

	/**
	 * @param corpIdCareEndDate the corpIdCareEndDate to set
	 */
	public void setCorpIdCareEndDate(String corpIdCareEndDate) {
		this.corpIdCareEndDate = corpIdCareEndDate;
	}

	/**
	 * @return the businessLicenseNumber
	 */
	public String getBusinessLicenseNumber() {
		return businessLicenseNumber;
	}

	/**
	 * @param businessLicenseNumber the businessLicenseNumber to set
	 */
	public void setBusinessLicenseNumber(String businessLicenseNumber) {
		this.businessLicenseNumber = businessLicenseNumber;
	}

	/**
	 * @return the businessLicenseEndDate
	 */
	public String getBusinessLicenseEndDate() {
		return businessLicenseEndDate;
	}

	/**
	 * @param businessLicenseEndDate the businessLicenseEndDate to set
	 */
	public void setBusinessLicenseEndDate(String businessLicenseEndDate) {
		this.businessLicenseEndDate = businessLicenseEndDate;
	}

	/**
	 * @return the orgNumber
	 */
	public String getOrgNumber() {
		return orgNumber;
	}

	/**
	 * @param orgNumber the orgNumber to set
	 */
	public void setOrgNumber(String orgNumber) {
		this.orgNumber = orgNumber;
	}

	/**
	 * @return the orgEndDate
	 */
	public String getOrgEndDate() {
		return orgEndDate;
	}

	/**
	 * @param orgEndDate the orgEndDate to set
	 */
	public void setOrgEndDate(String orgEndDate) {
		this.orgEndDate = orgEndDate;
	}

	/**
	 * @return the taxRegCertifNumber
	 */
	public String getTaxRegCertifNumber() {
		return taxRegCertifNumber;
	}

	/**
	 * @param taxRegCertifNumber the taxRegCertifNumber to set
	 */
	public void setTaxRegCertifNumber(String taxRegCertifNumber) {
		this.taxRegCertifNumber = taxRegCertifNumber;
	}

	/**
	 * @return the taxRegCertifEndDate
	 */
	public String getTaxRegCertifEndDate() {
		return taxRegCertifEndDate;
	}

	/**
	 * @param taxRegCertifEndDate the taxRegCertifEndDate to set
	 */
	public void setTaxRegCertifEndDate(String taxRegCertifEndDate) {
		this.taxRegCertifEndDate = taxRegCertifEndDate;
	}

	/**
	 * @return the serviceHotline
	 */
	public String getServiceHotline() {
		return serviceHotline;
	}

	/**
	 * @param serviceHotline the serviceHotline to set
	 */
	public void setServiceHotline(String serviceHotline) {
		this.serviceHotline = serviceHotline;
	}

	/**
	 * @return the orgIcon
	 */
	public Integer getOrgIcon() {
		return orgIcon;
	}

	/**
	 * @param orgIcon the orgIcon to set
	 */
	public void setOrgIcon(Integer orgIcon) {
		this.orgIcon = orgIcon;
	}

	/**
	 * @return the contactName
	 */
	public String getContactName() {
		return contactName;
	}

	/**
	 * @param contactName the contactName to set
	 */
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	/**
	 * @return the contactNumber
	 */
	public String getContactNumber() {
		return contactNumber;
	}

	/**
	 * @param contactNumber the contactNumber to set
	 */
	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}

	/**
	 * @return the auditStatus
	 */
	public Integer getAuditStatus() {
		return auditStatus;
	}

	/**
	 * @param auditStatus the auditStatus to set
	 */
	public void setAuditStatus(Integer auditStatus) {
		this.auditStatus = auditStatus;
	}

	/**
	 * @return the auditContent
	 */
	public String getAuditContent() {
		return auditContent;
	}

	/**
	 * @param auditContent the auditContent to set
	 */
	public void setAuditContent(String auditContent) {
		this.auditContent = auditContent;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the normal
	 */
	public Integer getNormal() {
		return normal;
	}

	/**
	 * @param normal the normal to set
	 */
	public void setNormal(Integer normal) {
		this.normal = normal;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the insertDate
	 */
	public Date getInsertDate() {
		return insertDate;
	}

	/**
	 * @param insertDate the insertDate to set
	 */
	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	/**
	 * @return the insertBy
	 */
	public Long getInsertBy() {
		return insertBy;
	}

	/**
	 * @param insertBy the insertBy to set
	 */
	public void setInsertBy(Long insertBy) {
		this.insertBy = insertBy;
	}

	/**
	 * @return the lastUpdateDate
	 */
	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	/**
	 * @param lastUpdateDate the lastUpdateDate to set
	 */
	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	/**
	 * @return the lastUpdateBy
	 */
	public Long getLastUpdateBy() {
		return lastUpdateBy;
	}

	/**
	 * @param lastUpdateBy the lastUpdateBy to set
	 */
	public void setLastUpdateBy(Long lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy;
	}

	/**
	 * @return the orgCount
	 */
	public String getOrgCount() {
		return orgCount;
	}

	/**
	 * @param orgCount the orgCount to set
	 */
	public void setOrgCount(String orgCount) {
		this.orgCount = orgCount;
	}

	/**
	 * @return the useCount
	 */
	public String getUseCount() {
		return useCount;
	}

	/**
	 * @param useCount the useCount to set
	 */
	public void setUseCount(String useCount) {
		this.useCount = useCount;
	}

	/**
	 * @return the comCount
	 */
	public String getComCount() {
		return comCount;
	}

	/**
	 * @param comCount the comCount to set
	 */
	public void setComCount(String comCount) {
		this.comCount = comCount;
	}

	/**
	 * @return the houCount
	 */
	public String getHouCount() {
		return houCount;
	}

	/**
	 * @param houCount the houCount to set
	 */
	public void setHouCount(String houCount) {
		this.houCount = houCount;
	}

	/**
	 * @return the tenCount
	 */
	public String getTenCount() {
		return tenCount;
	}

	/**
	 * @param tenCount the tenCount to set
	 */
	public void setTenCount(String tenCount) {
		this.tenCount = tenCount;
	}

	/**
	 * @return the trenchId
	 */
	public Long getTrenchId() {
		return trenchId;
	}

	/**
	 * @param trenchId the trenchId to set
	 */
	public void setTrenchId(Long trenchId) {
		this.trenchId = trenchId;
	}

	/**
	 * @return the tenementId
	 */
	public Long getTenementId() {
		return tenementId;
	}

	/**
	 * @param tenementId the tenementId to set
	 */
	public void setTenementId(Long tenementId) {
		this.tenementId = tenementId;
	}

	/**
	 * @return the provinceName
	 */
	public String getProvinceName() {
		return provinceName;
	}

	/**
	 * @param provinceName the provinceName to set
	 */
	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName== null ? null : provinceName.trim();
	}

	/**
	 * @return the cityName
	 */
	public String getCityName() {
		return cityName;
	}

	/**
	 * @param cityName the cityName to set
	 */
	public void setCityName(String cityName) {
		this.cityName = cityName== null ? null : cityName.trim();
	}

	/**
	 * @return the areaName
	 */
	public String getAreaName() {
		return areaName;
	}

	/**
	 * @param areaName the areaName to set
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName== null ? null : areaName.trim();
	}

	/**
	 * @return the platformName
	 */
	public String getPlatformName() {
		return platformName;
	}

	/**
	 * @param platformName the platformName to set
	 */
	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}

	/**
	 * @return the trenchName
	 */
	public String getTrenchName() {
		return trenchName;
	}

	/**
	 * @param trenchName the trenchName to set
	 */
	public void setTrenchName(String trenchName) {
		this.trenchName = trenchName;
	}

	/**
	 * @return the contract
	 */
	public Contract getContract() {
		return contract;
	}

	/**
	 * @param contract the contract to set
	 */
	public void setContract(Contract contract) {
		this.contract = contract;
	}

	/**
	 * @return the filelist
	 */
	public String getFilelist() {
		return filelist;
	}

	/**
	 * @param filelist the filelist to set
	 */
	public void setFilelist(String filelist) {
		this.filelist = filelist;
	}

	/**
	 * @return the fileLists
	 */
	public List<File> getFileLists() {
		return fileLists;
	}

	/**
	 * @param fileLists the fileLists to set
	 */
	public void setFileLists(List<File> fileLists) {
		this.fileLists = fileLists;
	}

	/**
	 * 返回把当前资源当做父资源时的父资源id字符串
	 * 
	 * @return
	 */
	public String makeSelfAsParentIds() {
		return getOrgPIds() + getOrgId() + "/";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Organization [orgId=" + orgId + ", orgType=" + orgType
				+ ", orgName=" + orgName + ", comRegName=" + comRegName
				+ ", orgPId=" + orgPId + ", orgPIds=" + orgPIds
				+ ", provinceId=" + provinceId + ", cityId=" + cityId
				+ ", areaId=" + areaId + ", address=" + address + ", corpName="
				+ corpName + ", corpIdCardNumber=" + corpIdCardNumber
				+ ", corpIdCareEndDate=" + corpIdCareEndDate
				+ ", businessLicenseNumber=" + businessLicenseNumber
				+ ", businessLicenseEndDate=" + businessLicenseEndDate
				+ ", orgNumber=" + orgNumber + ", orgEndDate=" + orgEndDate
				+ ", taxRegCertifNumber=" + taxRegCertifNumber
				+ ", taxRegCertifEndDate=" + taxRegCertifEndDate
				+ ", serviceHotline=" + serviceHotline + ", orgIcon=" + orgIcon
				+ ", contactName=" + contactName + ", contactNumber="
				+ contactNumber + ", auditStatus=" + auditStatus
				+ ", auditContent=" + auditContent + ", content=" + content
				+ ", normal=" + normal + ", status=" + status + ", insertDate="
				+ insertDate + ", insertBy=" + insertBy + ", lastUpdateDate="
				+ lastUpdateDate + ", lastUpdateBy=" + lastUpdateBy
				+ ", orgCount=" + orgCount + ", useCount=" + useCount
				+ ", comCount=" + comCount + ", houCount=" + houCount
				+ ", tenCount=" + tenCount + ", trenchId=" + trenchId
				+ ", tenementId=" + tenementId + ", provinceName="
				+ provinceName + ", cityName=" + cityName + ", areaName="
				+ areaName + ", filelist=" + filelist + ", fileLists="
				+ fileLists + ", orgids=" + orgids + ", comName=" + comName
				+ ", platformName=" + platformName + ", trenchName="
				+ trenchName + ", contract=" + contract + ", userName="
				+ userName + ", ptName=" + ptName + ", audAdvices="
				+ audAdvices + "]";
	}
    
}